package com.iisigroup.audf.statistics.logic;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;

import com.iisigroup.audf.model.Audf1000;

public class RL02A10 extends BaseLogic{
    private String startMethodName = "initOperationDTO";
    private String endMethodName = "saveXldf";
    
    /**
     * @param args
     */
    public   void processOperation (final List<Audf1000> srcList) {
	final	 Map<String, List<Audf1000>> mapdata = super.process(srcList);
	for(String txId : mapdata.keySet()){
	    final List<Audf1000> list = mapdata.get(txId);
	    float startTime = 0;
	    float endTime = 0;
	    try {
		for(Audf1000 unit : list){
		if(StringUtils.equalsIgnoreCase(startMethodName, unit.getServiceMethod())){
		    startTime = super.processSeqNo(unit.getSeqNo());
		}else if(StringUtils.equalsIgnoreCase(endMethodName, unit.getServiceMethod())){
		    float execTime = unit.getExecTime();
		    endTime = super.processSeqNo(unit.getSeqNo());
		}
		
		}
	    } catch (ParseException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	    }
	   
	}

    }

}
